package com.master.dao;

import com.master.domain.MiaoshaUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MiaoshaUserDao {

    @Select("select * from miaosha_user where name = #{name}")
    public MiaoshaUser getByName(@Param("name")String name);

    @Update("update miaosha_user set password = #{password} where name = #{name}")
    public void update(MiaoshaUser miaoshaUser);
}
